﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SEBanking
{
    public partial class WebForm6 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            DataClasses1DataContext context = new DataClasses1DataContext();
            var query = context.SEBanking_Accounts.Single(c => c.Acc_ID == txtUserName.Text);
            if (query != null)
                lblPassword.Text = "Your password: " + query.Acc_Password;
        }
    }
}
